<style>
    #edit-title{
        width:100%;
        text-align:center;
        background-color: #5e87b0;
        height:30px;
        color:#ffffff;
        line-height:30px;
    }
    #edit-content{
        background-color:#ffffff;
        margin-left:0;
        margin-right:0;
    }
    .ngdialog.ngdialog-theme-default .ngdialog-content{
        width:40%!important;
    }
    #time-picker{
        margin-top:20px;
    }
    .btn-active{
        background-color:#0be386;
    }
    .edit-element{
        border-bottom: solid 1px #CCCCCC;
        height:40px;
        line-height:40px;
    }
    #edit-select-content{
        height:460px;
        overflow-x:hidden;
        overflow-y:auto;
    }
</style>
<div id="editTag" class="ngdialog ngdialog-theme-default ng-scope" role="alertdialog">
    <div class="ngdialog-overlay">
    </div>
    <div class="ngdialog-content" role="document" style="padding:0 0 0 0">
        <div id="edit-title">
            <div class="col-md-10" style="text-align: center">
                <h4>添加产品</h4>
            </div>
            <div class="col-md-2" style="text-align: right">
                <p ng-click="cancel()" style="">关闭</p>
            </div>
        </div>
        <div style="width:100%;padding:1em" class="row" id="edit-content">
            <div id="edit-select-content">
                <div class="form-group">
                    <label class="col-sm-3 control-label" style="text-align: center">
                        选择产品：
                    </label>
                    <div class="col-lg-9">
                        <select style="max-width: 200px" class="form-control"  ng-model="selectProduct.productNew" ng-options="x.name for x in productList"></select>                    </div>
                </div>
                <div class="col-md-12" style="height: 20px;"></div>
                <div class="form-group">
                    <label class="col-sm-3 control-label" style="text-align: center">
                        配置：
                    </label>
                    <div class="col-lg-9">
                        <input type="text" class="form-control" ng-model="selectProduct.configure">
                    </div>
                </div>
                <div class="col-md-12" style="height: 20px;"></div>
                <div class="form-group">
                    <label class="col-sm-3 control-label" style="text-align: center">
                        金额（元）：
                    </label>
                    <div class="col-lg-9">
                        <input type="text" class="form-control" ng-model="selectProduct.amount">
                    </div>
                </div>
                <div class="col-md-12" style="height: 20px;"></div>
                <div class="form-group">
                    <label class="col-sm-3 control-label" style="text-align: center">
                        拥有者及成绩：
                    </label>
                    <div class="col-lg-9">
                        <div ng-repeat="item in selectProduct.oppProductNewContactDTOList">
                            <div class="col-md-5" style="margin-left: 0;margin-right: 0;padding-left: 0">
                                <select style="min-width: 100px" class="form-control" ng-change="item.orgContactName=x.orgContactName" ng-model="item.orgContactId" ng-options="x.orgContactId as x.orgContactName for x in EOList"></select>
                            </div>
                            <div class="col-md-3" style="margin-right: 0;padding-left: 0;padding-right: 3px">
                                <input type="text" class="form-control" ng-model="item.rate">
                            </div>
                            <div class="col-md-1" style="margin-right: 0;padding-left: 0">
                                %
                            </div>
                            <div class="col-md-3">
                                <i class="fa fa-minus-circle ad" ng-click="deleteContact($index)"></i>
                            </div>
                            <div class="col-md-12" style="height: 20px;"></div>
                        </div>
                        <div class="col-md-12">
                            <i class="fa fa-plus-circle ad" ng-click="addOwner()"></i>
                        </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-12" style="height: 20px;"></div>
                <div class="col-md-12">
                    <div class="col-md-6"  style="text-align: center">
                        <button class="btn btn-success" ng-click="save()">保存</button>
                    </div>
                    <div class="col-md-6"  style="text-align: center">
                        <button class="btn btn-success" ng-click="cancel()">取消</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>